#ifndef ITEM_HPP_INCLUDED
#define ITEM_HPP_INCLUDED

#include <string>

#include "item_type.hpp"

class item
{
public:
	struct parse_error {};
	explicit item(const std::string& type);
	explicit item(const_item_type_ptr type);
	const std::string& id() const { return type_->id(); }
	bool spoils(bool used) const { return type_->spoils(used); }
private:
	const_item_type_ptr type_;
};

#endif
